#ifndef UWindowManagerH
#define UWindowManagerH
#include "stdafx.h"
#include "UTypes.h"

class TWindowManager
{
private:
	TNonSpaceFillingContainerWindow* WindowContainer;
	std::vector<GLuint> Cursors;
	TDockable* FindWindowByTag(int Tag);
public:
	enum MOUSE_CURSOR { MC_RESIZE_TOP_LEFT };
	TPopUpMenu* PopUpMenu;
	TWindowManager(int Width, int Height, TWindowThemer* wt);
	int	 MPosX, MPosY;	//cursor position

	void EventHandle(SDL_Event event);
	void Draw();

	void NewWindow(int Left, int Top, int Right, int Bottom, TCustomWindow* Window,  TWindowThemer *wt, std::string name, int tag = WT_None);
};

extern TWindowManager* WindowManager;
extern int ScreenWidth ;
extern int ScreenHeight;

#endif
